package com.lcfc.attend.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.lcfc.attend.entity.SysUser;
@Mapper
public interface SysUserMapper {
    int deleteByPrimaryKey(String userCode);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(String userCode);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);
    /**
	 * 登录
	 * @param id
	 * @return
	 */
	List<SysUser> login(@Param(value="logincode")String logincode, @Param(value="password")String password);
	/**
	 * 根据usercode获取office
	 * @param usercode
	 * @return
	 */
	List<Map<String, String>> queryOfficeByCode(@Param(value="usercode")String usercode);
}